/*******************************************************
> Copyright (C) 2024 ==IOT== All rights reserved.
> File Name: func_obj.cpp
> Author: IOT
> Website:www.slq.org
> Created Time: 2024年10月31日 星期四 10时04分57秒
***************************************************/

#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <algorithm>
#include <memory>

using namespace std;

class MaxVal {
	public:
		bool operator()(int a, int b)
		{
			return a > b;
		}
		void show ()
		{
			cout << "this is show fun" << endl;
		}
};

int main(int argc,const char* argv[])
{
	MaxVal mx;

	mx.show();
	cout << mx(30, 20) << endl; // mx.operator()(10, 20)

    return 0;
}

